package com.yitianyigexiangfa.designpattern.facade.hometheater.subsystem;

/**
 * @author Bill Lau
 * @date 2018-01-18
 */
public class DvdPlayer {

    private Amplifier amplifier = new Amplifier();

    public void on() {
        System.out.println("DvdPlayer on");
    }

    public void off() {
        System.out.println("DvdPlayer off");
    }

    /**
     * 光盘弹出
     */
    public void eject() {
        System.out.println("DvdPlayer eject");
    }

    public void pause() {
        System.out.println("DvdPlayer pause");
    }

    public void play(String play) {
        System.out.println("DvdPlayer playing:" + play);
    }

    public void setSurroundaudio() {
        System.out.println("DvdPlayer start surround audio");
    }

    public void setTwoChannelAudio() {
        System.out.println("Dvdplayer set two channel audio");
    }

    public void stop() {
        System.out.println("Dvdplayer stop");
    }

    @Override
    public String toString() {
        return "DvdPlayer{" +
               "amplifier=" + amplifier +
               '}';
    }
}
